/*  
 * @(#) DemoXmlUserService.java Create on 2012-5-11 上午10:04:09   
 *   
 * Copyright 2012 by xl.   
 */

package cn.com.demo.xml.service;

import cn.com.common.base.bean.BackstageResult;
import cn.com.common.base.bean.PageBean;
import cn.com.demo.bean.DemoUserBean;

/**
 * 
 * @author zhanghongliang
 * @date 2012-5-11
 */
public interface DemoXmlUserService {

	/**
	 * 取分页数据
	 * 
	 * @Title: getUserPage
	 * @data:2012-5-10上午10:18:12
	 * @author:zhanghongliang
	 * 
	 * @param query
	 * @return
	 * @throws Exception
	 */
	public PageBean<DemoUserBean> getUserPage(DemoUserBean query) throws Exception;

	/**
	 * 查找一个bean
	 * 
	 * @Title: find
	 * @data:2012-5-10上午11:21:10
	 * @author:zhanghongliang
	 * 
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public DemoUserBean find(Integer id) throws Exception;

	/**
	 * 删除
	 * 
	 * @Title: deltet
	 * @data:2012-5-10上午11:25:45
	 * @author:zhanghongliang
	 * 
	 * @param oprBean
	 * @return
	 * @throws Exception
	 */
	public BackstageResult deltet(DemoUserBean oprBean) throws Exception;

	/**
	 * 保存
	 * 
	 * @Title: save
	 * @data:2012-5-10上午11:29:32
	 * @author:zhanghongliang
	 * 
	 * @param oprBean
	 * @return
	 */
	public BackstageResult save(DemoUserBean oprBean) throws Exception;

}
